import Search from "./Search";
import List from "./List";
import { useState } from "react";

export default function App() {
  const [keyword, setKeyword] = useState("");
  const [items, setItems] = useState([
    {
      id: 1,
      content: "123",
    },
    { id: 2, content: "445" },
  ]);

  return (
    <>
      <h1>TodoList应用</h1>
      <Search keyword={keyword} onKeywordChange={setKeyword} />
      <List items={items} filterText={keyword} />
    </>
  );
}
